package com.example.demo.tool;/**
 * @Auter 李孝在
 * @Date 2025/1/17
 */

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * @projectName: demo1
 * @package: com.example.demo.tool
 * @className: IdBuilder
 * @author: Eric
 * @description: TODO
 * @date: 2025/1/17 04:27
 * @version: 1.0
 */
public class IdBuilder {

    public static String getIdBySystemDate(){
        // 格式器
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
        String id = LocalDate.now().format(formatter);
        return id;
    }
}
